package com.jisf.driver.mapper;

import com.jisf.driver.entity.enumtype.SubjectEnum;
import com.jisf.driver.entity.po.Examine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jisf.driver.entity.vo.StudentExamineResponseVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jisf
 * @since 2022-05-10
 */
public interface ExamineMapper extends BaseMapper<Examine> {

    /**
     * 获取已预约考试列表
     * @param studentId
     * @return
     */
    List<StudentExamineResponseVo> getExamineAppointList(Integer studentId);

    /**
     * 教练获取分配的考试列表
     * @param coachId
     * @return
     */
    List<Examine> getExamineAllotList(Integer coachId);

    /**
     * 获取已预约某科目的考试数量
     * @param studentId
     * @param subject
     * @return
     */
    Integer getExamineAppoint(Integer studentId, SubjectEnum subject);


}
